package com.atguigu03._extends.exer1;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/27 19:20
 * @Version 1.0
 */
public class KidsTest {
    public static void main(String[] args) {
        Kids kids = new Kids();

        kids.setSex(1);
        kids.setSalary(0);
        kids.setYearsOld(22);

        //来自于父类中声明的方法
        kids.manOrWoman();
        kids.employeed();

        //kids类自己声明的方法
        kids.printAge();
    }


}
